<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with path pathline]]></title><description><![CDATA[A list of topics that have been tagged with path pathline]]></description><link>https://forum.qt.io/tags/path pathline</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 02:21:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/tags/path pathline.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[Dynamically Construct Path and PathLines]]></title><description><![CDATA[I have the Path and PathLine working with the above initial declaration of Path and Pathline.  What I've been trying to do is either user a timer OnTriggered to create the Path and append/push... pathElements, or, use a Repeater to create the path.  Variations on things I've tried below.
a) Timer OnTriggered,
var pathLine = Qt.createQmlObject('import QtQuick 1.1;PathLine {x:0; y:0}',_myPath)
  if(_myPath.pathElements.length == 0) {
        for(var j=0;j&lt;24;j++) {
        _myPath.pathElements.push({"x":j,"y":0})
       }
     }

b) Repeater,
Repeater{
  	id: repeater
  	model: myModel
  		delegate: Item{
  			property ShapePath s: ShapePath{					
  			strokeWidth: 2
      PathLine{x: model.x; y: model.y}
  			}
  			Component.onCompleted: {
  				shape.data.push(s)
  			}
  		}
  	}		
  }

My line chart is 48 segments and is fine for what I'm trying to do.  The code is not very elegant, but works.   Thanks
]]></description><link>https://forum.qt.io/topic/146022/dynamically-construct-path-and-pathlines</link><guid isPermaLink="true">https://forum.qt.io/topic/146022/dynamically-construct-path-and-pathlines</guid><dc:creator><![CDATA[dmac001]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>